<h1>GenCodeValueAdmin List</h1>
<div align="right"><a href="<?php echo url_for('codesetAdmin/index') ?>">Back to Code Set List</a></div>
<table>
  <thead>
    <tr>
      <th>Code</th>
      <th>Status</th>
      <th>Assigning Authority</th>
      <th>Display Name</th>
      <th>Description</th>
      <th>Effective from</th>
      <th>Effective to</th>
      <th>Parent</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($list as $cm_general_code_value): ?>
    <tr>
      <td>
      <?php if($cm_general_code_value['is_modfiable_ind'] == 'Y'): ?>
        <a href="<?php echo url_for('genCodeValueAdmin/show?code_set_nm='.$cm_general_code_value['code_set_nm'].'&code='.$cm_general_code_value['code']) ?>"><?php echo $cm_general_code_value['code'] ?></a>
      <?php else: ?>
        <?php echo $cm_general_code_value['code'] ?>
      <?php endif; ?>
      </td>
      <td><?php echo @$status[$cm_general_code_value['status_cd']] ?></td>
      <td><?php echo @$auth[$cm_general_code_value['assigning_authority_cd']] ?></td>
      <td><?php echo $cm_general_code_value['display_name'] ?></td>
      <td><?php echo $cm_general_code_value['description'] ?></td>
      <td><?php echo $cm_general_code_value['effective_from_time'] ?></td>
      <td><?php echo $cm_general_code_value['effective_to_time'] ?></td>
      <td><?php echo @$parent[$cm_general_code_value['parent_is_cd']] ?> 
          <?php echo !empty($cm_general_code_value['parent_is_cd']) ? ' ['.$cm_general_code_value['parent_is_cd'].']':'' ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
<a href="<?php echo url_for('genCodeValueAdmin/new?code_set_nm='.$sf_request->getParameter('code_set_nm')) ?>">Create</a>
